﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SYSoft.Model.ViewModels.DeviceData
{

    public class PU3000TableData
    {
        public List<TableColumns> tableColumns { get; set; }

        public List<TableData1> tableData { get; set; }

    }

    /// <summary>
    /// 通道数据动态表
    /// </summary>
    public class DynamicTableData
    {
        public List<TableColumns> tableColumns { get; set; }

        public List<dynamic> tableDatas { get; set; }


        public List<TableData> tableData { get; set; }

    }

    public class TableColumns
    {
        public string label { get; set; }

        public string prop { get; set; }
    }

    public class TableData
    {
        public void SetValue(int i,float value)
        {
            switch (i)
            {
                case 1: Value1  = value;break;
                case 2: Value2  = value; break;
                case 3: Value3  = value; break;
                case 4: Value4  = value; break;
                case 5: Value5  = value; break;
                case 6: Value6  = value; break;
                case 7: Value7  = value; break;
                case 8: Value8  = value; break;
                case 9: Value9  = value; break;
                case 10: Value10 = value; break;
                case 11: Value11 = value; break;
                case 12: Value12 = value; break;
                case 13: Value13 = value; break;
                case 14: Value14 = value; break;
                case 15: Value15 = value; break;
                case 16: Value16 = value; break;
                case 17: Value17 = value; break;
                case 18: Value18 = value; break;
                case 19: Value19 = value; break;
                case 20: Value20 = value; break;
                case 21: Value21 = value; break;
                case 22: Value22 = value; break;
                case 23: Value23 = value; break;
                case 24: Value24 = value; break;
                case 25: Value25 = value; break;
                case 26: Value26 = value; break;
                case 27: Value27 = value; break;
                case 28: Value28 = value; break;
                case 29: Value29 = value; break;
                case 30: Value30 = value; break;
                case 31: Value31 = value; break;
                case 32: Value32 = value; break;
            }
        }
        public string time { get; set; }
        public float Value1 { get; set; }
        public float Value2 { get; set; }
        public float Value3 { get; set; }
        public float Value4 { get; set; }
        public float Value5 { get; set; }
        public float Value6 { get; set; }
        public float Value7 { get; set; }
        public float Value8 { get; set; }
        public float Value9 { get; set; }
        public float Value10 { get; set; }
        public float Value11 { get; set; }
        public float Value12 { get; set; }
        public float Value13 { get; set; }
        public float Value14 { get; set; }
        public float Value15 { get; set; }
        public float Value16 { get; set; }
        public float Value17 { get; set; }
        public float Value18 { get; set; }
        public float Value19 { get; set; }
        public float Value20 { get; set; }
        public float Value21 { get; set; }
        public float Value22 { get; set; }
        public float Value23 { get; set; }
        public float Value24 { get; set; }
        public float Value25 { get; set; }
        public float Value26 { get; set; }
        public float Value27 { get; set; }
        public float Value28 { get; set; }
        public float Value29 { get; set; }
        public float Value30 { get; set; }
        public float Value31 { get; set; }
        public float Value32 { get; set; }

    }


    public class TableData1
    {
        public void SetValue(int i, string value)
        {
            switch (i)
            {
                case 1: Value1 = value; break;
                case 2: Value2 = value; break;
                case 3: Value3 = value; break;
                case 4: Value4 = value; break;
                case 5: Value5 = value; break;
                case 6: Value6 = value; break;
                case 7: Value7 = value; break;
                case 8: Value8 = value; break;
                case 9: Value9 = value; break;
                case 10: Value10 = value; break;
            }
        }
        public string time { get; set; }
        public string Value1 { get; set; }
        public string Value2 { get; set; }
        public string Value3 { get; set; }
        public string Value4 { get; set; }
        public string Value5 { get; set; }
        public string Value6 { get; set; }
        public string Value7 { get; set; }
        public string Value8 { get; set; }
        public string Value9 { get; set; }
        public string Value10 { get; set; }


    }
}
